package cn.kgc.appinfo.mapper;

import cn.kgc.appinfo.common.condition.AppInfoCondition;
import cn.kgc.appinfo.common.utils.Pager;
import cn.kgc.appinfo.entity.AppInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AppInfoMapper {

    List<AppInfo> selectAppInfoAllByAppInfoCondition(@Param("condition") AppInfoCondition condition, @Param("pager")Pager pager);

    AppInfo selectAppInfoById(Integer id);

    int selectAppInfoCountByAPKName(String apkName);

    int selectAppInfoCountByCondition(AppInfoCondition appInfoCondition);

    int addAppInfo(AppInfo appInfo);

    int updataAppInfo(AppInfo appInfo);

    int deleteAppInfo(AppInfo appInfo);
}
